<include file="../header" />

<script type="text/javascript" src="/Template/js/vue.min.js"></script>

<body class="J_scroll_fixed" id="container">
<script type="text/javascript">
    $(function() {


        $("button.btn_submit").click(function() {
            if($("input[name=patient]").val() == ""){
                alert("请填写【患者】");
                $("input[name=patient]").focus();
                return false;
            }
            if($("input[name=type]").val() == ""){
                alert("请填写【矫形器类型】");
                $("input[name=type]").focus();
                return false;
            }

            $("button.btn_submit").hide();

        });

    })

</script>

<div class="wrap jj">
    <div class="common-form">
        <form method="post" class="form-horizontal J_ajaxForm" action="{:U('BatchNo/addPost')}">
            <fieldset>
                <div class="control-group">
                    <label class="control-label">日期：</label>
                    <div class="controls">
                        <input type="text" class="J_date" name="audit_date" value="{$info.date}" readonly>&nbsp;
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">生产批号：</label>
                    <div class="controls">
                        <input type="text" value="{$info.batch_no}" readonly/>&nbsp;&nbsp;
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">检验单号：</label>
                    <div class="controls">
                        <input type="text" value="{$info.audit_no}" readonly/>&nbsp;&nbsp;
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">患者：</label>
                    <div class="controls">
                        <input type="text" class="input" name="patient" value="" placeholder="例如：张XX 左侧">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">矫形器类型：</label>
                    <div class="controls">
                        <input type="text" class="input" name="type" value="">
                    </div>
                </div>
            </fieldset>
            <div class="form-actions">
                <button type="submit" class="btn btn-primary btn_submit">添加</button>
                <a class="btn" href="__URL__">返回</a>
            </div>
        </form>
    </div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>